package com.quartet.modules.customer.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.quartet.modules.stock.dto.TTerminalStockResponseDto;
import com.quartet.modules.terminal.dto.TTerminalInfoResponseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 客户信息返回DTO
 *
 * @author makejava
 * @since 2021-05-04 16:25:15
 */
@Data
@ApiModel(value = "客户信息")
public class TCustomerInfoResponseDto {
    /**
     * @Fields serialVersionUID
     */
    private static final long serialVersionUID = -4635091599580345302L;

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 客户编码
     */
    @ApiModelProperty(value = "客户编码")
    private String customerCode;

    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称")
    private String customerName;

    /**
     * 创建者id
     */
    @ApiModelProperty(value = "创建者id")
    private String createUserId;

    /**
     * 创建者名称
     */
    @ApiModelProperty(value = "创建者名称")
    private String createUsername;

    /**
     * 联系人名称
     */
    @ApiModelProperty(value = "联系人名称")
    private String contacts;

    /**
     * 联系人电话
     */
    @ApiModelProperty(value = "联系人电话")
    private String contactsPhone;

    /**
     * 客户地址
     */
    @ApiModelProperty(value = "客户地址")
    private String customerAddress;

    /**
     * 已分配终端数
     */
    @ApiModelProperty(value = "已分配终端数")
    private Integer assignedTerminalsNum;

    /**
     * 预留字段
     */
    @ApiModelProperty(value = "预留字段")
    private String status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;

    /**
     * 删除标识 0未删除 1删除
     */
    @ApiModelProperty(value = "删除标识 0未删除 1删除")
    private Integer deleted;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 下级
     */
    @ApiModelProperty(value = "下级")
    private List<TCustomerInfoResponseDto> children;

    /**
     * 终端数据
     */
    @TableField(exist = false)
    private List<TTerminalInfoResponseDto> tTerminalInfoResponseDtoList;
}
